
{include file='tpl_admin_header.html'}

<body class="wp-admin ">
<div id="wpwrap">
<div id="wpcontent">
<div id="wphead">
<h1>AGrind Designer</h1>
</div>
<div id="user_info"><p>您好，<a href="profile.php">admin</a> | <a href="{ url controller='admin' action='logout' }" title="注销">注销</a></p></div>

{include file='tpl_admin_menu.html'}

<div id="wpbody">
{$message}

<div class="wrap">

<h2>{$menuName}</h2>
<br class="clear" />
{ $page_info }

<br class="clear" />
<table class="widefat">
	<thead>
	<tr>
		<th scope="col" class="check-column"></th>
		<th scope="col">封面</th>
		<th scope="col">专辑名称</th>
		<th scope="col">风格</th>
		<th scope="col">曲目</th>
		<th scope="col">所属乐队</th>
		<th scope="col">发行厂商</th>
		<th scope="col">发行年份</th>
	</tr>
	</thead>
	<tbody>
	{foreach item=album from=$albumList}
	<tr id='post-3' class='alternate author-self status-publish' valign="top">

		<th scope="row" class="check-column"></th>		
		<td><img src="/upload/thumbs/{$album.album_thumb}" /></td>
		<td><strong><a class="row-title" href="{ url controller='mngralbum' action='edit' album_id=$album.album_id page=$page}" title="编辑">{$album.album_name}</a></strong></td>	<td>
		{foreach item=styles from=$album.style}
		{$styles.style_name} 
		{/foreach}
		</td>	
		<td><a class="row-title" href="{ url controller='mngralbum' action='songs' album_id=$album.album_id }" title="查看{$album.album_name}的曲目"> {$album.songs|@count}</a></td>
		<td><a class="row-title" href="{ url controller='mngrartist' action='album' artist_id=$album.artists.artist_id }" title="查看{$album.artists.artist_name}发行的专辑">{$album.artists.artist_name}</a></td>
		<td><a class="row-title" href="{ url controller='mngrlabel' action='album' label_id=$album.labels.label_id }" title="查看{$album.labels.label_name}发行的专辑">{$album.labels.label_name}</a></td>
		<td>{$album.release_date}</td>
	</tr>
	{/foreach}	
	</tbody>
</table>
<br class="clear" />

<div id="ajax-response"></div>
{ $page_info }

<br class="clear" />
</div><!-- wrap -->

</div><!-- wpbody -->
</div><!-- wpcontent -->
</div><!-- wpwrap -->
{include file='tpl_admin_footer.html'}
</body>
</html>
